class Student{
    private String name;
    public int age;
    private int score;
    private static String classNum;
    static {
        classNum="113";
        System.out.println("调用了静态代码块");
    }
    {
        this.age=10;
        System.out.println("调用了实例化代码块");
    }
    public Student(){
        System.out.println("调用了无参构造代码块");
    }
    /*public Student(String name,int age,int score){
        this.name=name;
        this.age=age;
        this.score=score;
        System.out.println("调用了构造代码块");
    }*/

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

}
public class Test {
    public static void main(String[] args) {
        Student stu1=new Student();
       /* stu1.setAge(10);
        System.out.println(stu1.getAge());*/
    }
}
